package com.yix.modules.dl;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/2/2 16:05
 */
public class Proxy extends Subject{
    private RealSubject realSubject;
    /**
     * 代理真实实体,使用它的真实方法
     */
    @Override
    public void request() {
        if (realSubject ==null){
            realSubject =new RealSubject();

        }
        realSubject.request();
    }
}
